from CloudEngine.core.ArrayPlus import ArrayPlus
from CloudEngine.core.VTActor import VTActor


def get_actor_attributes(app, actor_id):
    actors: ArrayPlus = app.actorList
    r: VTActor = actors.find("id", actor_id)
    if r.attributes is not None:
        l = []
        for key, value in r.attributes.items():
            l.append(key)
        return l
    else:
        return []
